﻿
// MiniFlasher.cpp: 定义应用程序的类行为。
//

#include "pch.h"
#include "framework.h"
#include "MiniFlasher.h"
#include "MiniFlasherDlg.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#endif

// CMiniFlasherApp
BEGIN_MESSAGE_MAP(CMiniFlasherApp, CWinApp)
	ON_COMMAND(ID_HELP, &OnHelp)
END_MESSAGE_MAP()


// CMiniFlasherApp 构造
CMiniFlasherApp::CMiniFlasherApp()
{

}

// 唯一的 CMiniFlasherApp 对象
CMiniFlasherApp theApp;

void CMiniFlasherApp::OnHelp()
{
	ShellExecuteA(NULL, "open", "https://gitee.com/kerndev/MiniFlasher", NULL, NULL, SW_SHOW);
}

// CMiniFlasherApp 初始化
BOOL CMiniFlasherApp::InitInstance()
{
	CWinApp::InitInstance();
	SetRegistryKey("XCDD");
	CMiniFlasherDlg dlg;
	m_pMainWnd = &dlg;
	dlg.DoModal();
	return FALSE;
}
